package com.hui.stock.mapper;

import com.hui.stock.pojo.domain.OuterMarketDomain;
import com.hui.stock.pojo.entity.StockOuterMarketIndexInfo;
import io.swagger.annotations.ApiModel;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author ymh
* @description 针对表【stock_outer_market_index_info(外盘详情信息表)】的数据库操作Mapper
* @createDate 2024-11-11 16:04:25
* @Entity com.hui.stock.pojo.entity.StockOuterMarketIndexInfo
*/
@ApiModel(description = "针对表【stock_outer_market_index_info(外盘详情信息表)】的数据库操作Mapper")
public interface StockOuterMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockOuterMarketIndexInfo record);

    int insertSelective(StockOuterMarketIndexInfo record);

    StockOuterMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockOuterMarketIndexInfo record);

    int updateByPrimaryKey(StockOuterMarketIndexInfo record);

    /**
     * 获取指定时间和外面编码的外盘数据
     * @param curDate 指定时间
     * @param outerCodes 外盘编码
     * @return
     */
    List<OuterMarketDomain> getOuterMarkerInfo(@Param("curDate") Date curDate, @Param("outerCodes") List<String> outerCodes);
}
